package org.akizuky;

public class ClaseA {
    private String attr1;
    private String attr2;


    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClaseA)) {
            return false;
        }
        final ClaseA other = (ClaseA) object;
        if (!(attr1 == null ? other.attr1 == null : attr1.equals(other.attr1))) {
            return false;
        }
        if (!(attr2 == null ? other.attr2 == null : attr2.equals(other.attr2))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + ((attr1 == null) ? 0 : attr1.hashCode());
        result = PRIME * result + ((attr2 == null) ? 0 : attr2.hashCode());
        return result;
    }
}
